package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-合同目录
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_contract_catalog")
@ApiModel(value = "ErpContractCatalog对象", description = "ERP系统-合同目录")
public class ErpContractCatalog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("上级ID")
    private Integer parentId;

    @ApiModelProperty("上级path + 本条数据ID + 英文逗号")
    private String path;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("合同签订对象主体1-客户 2-供应商 3-员工 9-自定义主体")
    private Integer signSubject;

    @ApiModelProperty("合同编码")
    private String businessNum;

    @ApiModelProperty("审批方式 1-已配置钉钉审批流 2-发起人自行选择")
    private Integer approveType;

    @ApiModelProperty("钉钉审批流")
    private String ddProcessCode;

    @ApiModelProperty("合同主题-支持地区")
    private Integer isArea;

    @ApiModelProperty("合同主题-支持品牌")
    private Integer isBrand;

    @ApiModelProperty("合同主题-支持公司简称")
    private Integer isEntitySimpleName;

    @ApiModelProperty("合同主题-支持货品子分类")
    private Integer isStockCategorySub;

    @ApiModelProperty("排序号")
    private Integer sort;

    @ApiModelProperty("是否删除 1-删除 0-未删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
